package com.lxy.elasticsearch200.base.dto;

import javax.validation.constraints.NotNull;

/**
 * 只包含ID的dto对象
 *
 * @author admin
 * @since 2023-5-19
 */
public class BaseIdDto extends BaseDto {

    /**
     * ID
     */
    @NotNull(message = "ID不允许为空")
    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
